From 93f56e1536af73be22a4bf8c2764850e6f525687 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 7 Nov 2006 10:46:03 +0000 Subject: [PATCH] [XENAPI] Add 'image' field to xen_vbd_record, allowing an image to be associated with the vbd. xend supports this field and the client bindings need it to support existing images that are not under control of an SR. Signed-off-by: Jim Fehlig --- tools/libxen/include/xen_vbd.h | 1 + tools/libxen/src/xen_vbd.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tools/libxen/include/xen_vbd.h b/tools/libxen/include/xen_vbd.h index 48d4c32ea7..44bdfb13ae 100644 --- a/tools/libxen/include/xen_vbd.h +++ b/tools/libxen/include/xen_vbd.h @@ -69,6 +69,7 @@ typedef struct xen_vbd_record struct xen_vm_record_opt *vm; struct xen_vdi_record_opt *vdi; char *device; + char *image; enum xen_vbd_mode mode; enum xen_driver_type driver; double io_read_kbs; diff --git a/tools/libxen/src/xen_vbd.c b/tools/libxen/src/xen_vbd.c index eac4e3f26b..b14a52d043 100644 --- a/tools/libxen/src/xen_vbd.c +++ b/tools/libxen/src/xen_vbd.c @@ -52,6 +52,9 @@ static const struct_member xen_vbd_record_struct_members[] = { .key = "device", .type = &abstract_type_string, .offset = offsetof(xen_vbd_record, device) }, + { .key = "image", + .type = &abstract_type_string, + .offset = offsetof(xen_vbd_record, image) }, { .key = "mode", .type = &xen_vbd_mode_abstract_type_, .offset = offsetof(xen_vbd_record, mode) }, -- 2.30.2